<template>
  <div class='header'>
    <h1>我是Header</h1>
    <p>
        Count的值是{{ count }}
        
    </p>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
    name : 'Header',
    computed : {
      ...mapState(['count','price'])
    }
}
</script>

<style>

</style>